﻿using MediatR;
using SqlSugar;
using T.Common.Domain.Common;

namespace RedDragon.ERP.API.Application.Commands.Enterprise
{
    /// <summary>
    /// 添加企业信息
    /// </summary>
    public class CreateEnterpriseCommand : IRequest<Result>
    {
        /// <summary>
        /// 企业ID(序号)
        /// </summary>
        //public int EnterpriseId { get; set; }

        /// <summary>
        /// 企业名称
        /// </summary>
        public string EnterpriseName { get; set; }

        /// <summary>
        /// 企业简称
        /// </summary>
        public string EnterpriseAbbreviation { get; set; }

        /// <summary>
        /// 注册地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 法定代表人
        public string LegalRepresentative { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        public string Phone { get; set; }

        /// <summary>
        /// 电子邮件
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 成立日期
        /// </summary>
        public DateTime EstablishmentDate { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? TurnoverTime { get; set; }

        /// <summary>
        /// 部门上级
        /// </summary>
        public int ParentId { get; set; }

        /// <summary>
        /// 是否删除 1-未删除 2-已删除
        /// </summary>
        public int IsDeleted { get; set; }
    }
}
